#!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time    : 2021/6/19 10:54
# @Author  : Aaron
# @File    : get_datas.py
# @Software: PyCharm

import yaml
import os
from calculator_pytest.setting import YML_DATA_PATH

def get_calc_data(yml_name):
    with open(f'{os.path.join(YML_DATA_PATH,yml_name)}', 'r', encoding='utf-8') as f:
        totals = yaml.safe_load(f)
        return totals


def get_selenium_data(yml_name):
    with open(f'{os.path.join(YML_DATA_PATH,yml_name)}', 'r', encoding='utf-8') as f:
        totals = yaml.safe_load(f)
        return totals